package models

import "gorm.io/gorm"

type Question struct {
	gorm.Model
	Title        string       `json:"title" gorm:"type:varchar(100)"`
	Description  string       `json:"description"  gorm:"type:varchar(255)"`
	Img          string       `json:"img"  gorm:"type:varchar(255)"`
	Types        string       `json:"types" gorm:"type:varchar(100)"`
	CateId       uint         `json:"cate_id"  gorm:"type:int(10)"`
	QuestionType QuestionType `gorm:"foreignKey:CateId"`
}
type QuestionType struct {
	gorm.Model
	Name string `json:"name" gorm:"type:varchar(100)"`
}
